/*
 * Copyright 2002-2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.core;

/**
 * Extension of the {@link Ordered} interface, expressing a <em>priority</em>
 * ordering: order values expressed by {@code PriorityOrdered} objects
 * always apply before same order values expressed by <em>plain</em>
 * {@link Ordered} objects.
 *
 * <p>This is primarily a special-purpose interface, used for objects where
 * it is particularly important to recognize <em>prioritized</em> objects
 * first, without even obtaining the remaining objects. A typical example:
 * prioritized post-processors in a Spring
 * {@link org.springframework.context.ApplicationContext}.
 *
 * 这主要是一个出于特殊目的接口：
 * 用于识别优先级为特别重要，但是不获取剩余对象。一个典型的例子：
 * ApplicationContext 中的优先级后置处理器！
 *
 * <p>Note: {@code PriorityOrdered} post-processor beans are initialized in
 * a special phase, ahead of other post-processor beans. This subtly
 * affects their autowiring behavior: they will only be autowired against
 * beans which do not require eager initialization for type matching.
 *
 * 注意：继承了 PriorityOrdered 的后置处理器 bean,它们在特殊的阶段进行初始化：
 * 比其他的后置处理器早。
 * 正是这个特性，微妙地影响了他们的自动装配的行为：
 * 在类型匹配的时候，他们只会通过不要求预先初始化的 bean 进行自动装配。
 *
 * 我的理解：
 * 1.优先级（同 Ordered）
 * 2.这个接口设计上的侧重点：偏向优先级，而非获取其中的对象；BeanPostProcessor!
 * 3.本接口实现的后置处理器：
 * 	3.1 【初始化的时候】顺序更早；
 * 	3.2 【类型匹配的时候】不要求自动装配的 bean 进行预先初始化；
 * 	（关于这一点我的理解是这样的；PriorityOrdered 强制性让其实现者（指的是BeanPostProcessor）优先完成初始化，而不管其中的属性注入。）
 *
 * @author Juergen Hoeller
 * @since 2.5
 * @see org.springframework.beans.factory.config.PropertyOverrideConfigurer
 * @see org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
 */
public interface PriorityOrdered extends Ordered {

}
